<?php

/*
 * The auth resource.
 *
 * @package App
 * @subpackage Resource
 */
class App_Resource_Auth extends Zend_Application_Resource_ResourceAbstract
{

    /**
     * Holds the Auth instance
     *
     * @var
     */
    protected $_auth;


    public function init()
    {
        // Return Doctrine so bootstrap will store it in the registry
        return $this->getAuth();
    }


    public function getAuth()
    {
        // Get Doctrine configuration options from the application.ini file
        $authConfig = $this->getOptions();

        $this->_auth = Zend_Auth::getInstance();

        return $this->_auth;
    }

}
